Crate globwalk [] [src]

A cross platform crate for recursively walking over paths matching a Glob pattern.

This crate inherits many features from both walkdir and globset, like optionally following symbolic links, limiting of open file descriptors, and more.

Glob related options can be set by supplying your own GlobSet to GlobWalk::from_globset.

Example: Finding image files in the current directory.

Be careful when using this code, it's not being tested!
for img in GlobWalker::from_patterns(&["*.{png,jpg,gif}"], ".") {
    if let Ok(img) = img {
        remove_file(img.path()).unwrap();
    }
}

Structs

GlobWalker

An iterator for recursively yielding glob matches.

IntoIter

An iterator which emits glob-matched patterns.